package com.quanxiaoha.xiaohashu.distributed.api;


import com.quanxiaoha.xiaohashu.distributed.constant.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: jingyan_liu
 * @CreateTime: 2025-07-27
 * @Description:
 * @Version: 1.0
 */


@FeignClient(name = ApiConstants.SERVICE_NAME)
public interface DistributedIdGeneratorFeignApi {
	
	String PREFIX = "/id";
	
	@GetMapping(value = PREFIX + "/segment/get/{key}")
	String getSegmentId(@PathVariable("key") String key);
	
	@GetMapping(value = PREFIX + "/snowflake/get/{key}")
	String getSnowflakeId(@PathVariable("key") String key);
	
}
